﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace Domain.DomainBase
{
    /// <summary>
    /// 实体对象基类
    /// </summary>
    [DataContract]
    public abstract class DomainEntityBase : IDomainEntity
    {
        #region Code

        /// <summary>
        /// Field:Code 编码
        /// </summary>
        [DataMember]
        public virtual string Code { get; set; }

        #endregion

        #region CreateTime

        /// <summary>
        /// Field:CreateTime 建立时间
        /// </summary>
        [DataMember]
        public virtual DateTime CreateTime { get; set; }

        #endregion

        #region CreateUser

        /// <summary>
        /// Field:CreateUser 建立人
        /// </summary>
        [DataMember]
        public virtual string CreateUser { get; set; }

        #endregion

        #region EditTime

        /// <summary>
        /// Field:EditTime 编辑时间
        /// </summary>
        [DataMember]
        public virtual DateTime EditTime { get; set; }

        #endregion

        #region EditUser

        /// <summary>
        /// Field:EditUser 编辑人
        /// </summary>
        [DataMember]
        public virtual string EditUser { get; set; }

        #endregion

        #region IsPassed

        /// <summary>
        /// Field:IsPassed 审核
        /// </summary>
        [DataMember]
        public virtual bool IsPassed { get; set; }

        #endregion

        #region PassUser

        /// <summary>
        /// Field:PassUser 审核人
        /// </summary>
        [DataMember]
        public virtual string PassUser { get; set; }

        #endregion

        #region PassTime

        /// <summary>
        /// Field:PassTime 审核时间
        /// </summary>
        [DataMember]
        public virtual DateTime? PassTime { get; set; }

        #endregion

        #region Version

        /// <summary>
        /// Field:Version 版本
        /// </summary>
        [DataMember]
        public virtual long Version { get; set; }

        #endregion

        #region Sort

        /// <summary>
        /// Field:Sort 排序
        /// </summary>
        [DataMember]
        public virtual long Sort { get; set; }

        #endregion   
    }
}
